package com.example.studyonlineapplication.utils;

import android.content.Context;
import android.widget.Toast;

public class MyToast {
    private static Toast toast;

    public static void message(String s, Context context){
        if(toast!=null){
            toast.cancel();
        }
        Toast.makeText(context,s,Toast.LENGTH_SHORT).show();
    }
}
